package helloworld;
use strict;
use warnings;

use lib::RokuUI;

my $display;

# ---------------------------------------------------------------------
# Constructor
sub new {
	my ($class, $params) = @_;
	my $self = {}; 
	bless $self, $class; 
};

# ---------------------------------------------------------------------
# Paint on the display
sub action {
	#$logger->info('hello');
	my $self=shift; 
	$self->{'display'}->clear();
	$self->{'display'}->msg(text =>  "Hello world", duration => 10, x => 0, y => 0);
	$self->{'display'}->cmd("sketch -c exit");
}

1;
